<template>
  <div class="main">
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home" name="home"
        >首页</van-tabbar-item
      >
      <van-tabbar-item icon="comment-o" to="/community" name="community"
        >社区</van-tabbar-item
      >
      <van-tabbar-item icon="chat-o" to="/message" name="message"
        >消息</van-tabbar-item
      >
      <van-tabbar-item icon="user-o" to="/user" name="user"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang="less"></style>
